<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01</title>
</head>
<body>
<script>
    /*
     * 使用new Object()创建对象
     * 动态的添加对象的属性和方法
     *
     */

    var o = new Object();
    o.name = "zhangshan";
    o.sayName = function () {
        alert(this.name);
    }
    o.sayName();
</script>
</body>
</html>